<?php
class wapi_dbase extends wapi_mod_base {
	function _construct(){
//		if ($this->firstrun){
//			//$this->db_create();
//		}
	}
	public function db($app_class,$user_id='app'){
		global $wapi;
		$db_id = 'app';
		$db = null;
		$db_file = $wapi->db_base_path . $app_class . '/' . $user_id . '.db';
		$db = new $wapi->db_lib();
		$db->file = $db_file;
		return $db;
	}
}
?>